package com.bolang.onlycode.demo.designPatterns.observe;

public class WeixinUser implements Observer{
    private String name;
    public WeixinUser(String name){
        this.name=name;
    }
    @Override
    public void update(String msg) {
        System.out.println(name+"-"+msg);
    }
}
